import Layout from '@/layout'

const ctmsRouter = {
  path: '/ctms',
  component: Layout,
  redirect: '/ctms',
  name: 'ctms',
  meta: {
    title: '同城运输', // sameCity
    icon: 'truck'
  },
  children: [{
    path: 'dispatch',
    component: () =>
                import('@/views/ctms/dispatch'), // Parent router-view
    name: 'dispatch',
    meta: {
      title: '派单库' // dispatch
    },
    children: [{
      path: 'dispatchCars',
      component: () =>
                        import('@/views/ctms/dispatch/dispatchCars'), // Parent router-view
      name: 'dispatchCars',
      meta: {
        title: '按单派车' // dispatchCars
      }
    },
    {
      path: 'assignOrder',
      component: () =>
                        import('@/views/ctms/dispatch/assignOrder'), // Parent router-view
      name: 'assignOrder',
      meta: {
        title: '指派订单' // assignOrder
      }
    }
    ]
  }, {
    path: 'orderManagement',
    component: () =>
                import('@/views/ctms/orderManagement'), // Parent router-view
    name: 'orderManagement',
    meta: {
      title: '订单管理' // orderManagement
    },
    children: [{
      path: 'createOrder',
      component: () =>
                        import('@/views/ctms/orderManagement/createOrder'), // Parent router-view
      name: 'createOrder',
      meta: {
        title: '订单开单' // createOrder
      }
    },
    {
      path: 'bulkImport',
      component: () =>
                        import('@/views/ctms/orderManagement/bulkImport'), // Parent router-view
      name: 'bulkImport',
      meta: {
        title: '批量导入' // bulkImport
      }
    },
    {
      path: 'waybillManagement',
      component: () =>
                        import('@/views/ctms/orderManagement/waybillManagement'), // Parent router-view
      name: 'waybillManagement',
      meta: {
        title: '运单管理' // waybillManagement
      }
    },
    {
      path: 'receiptConfirmation',
      component: () =>
                        import('@/views/ctms/orderManagement/receiptConfirmation'), // Parent router-view
      name: 'receiptConfirmation',
      meta: {
        title: '回单确认' // receiptConfirmation
      }
    },
    {
      path: 'exceptionManagement',
      component: () =>
                        import('@/views/ctms/orderManagement/exceptionManagement'), // Parent router-view
      name: 'exceptionManagement',
      meta: {
        title: '异常管理' // exceptionManagement
      }
    },
    {
      path: 'informationSupplement',
      component: () =>
                        import('@/views/ctms/orderManagement/informationSupplement'), // Parent router-view
      name: 'informationSupplement',
      meta: {
        title: '信息补录' // informationSupplement
      }
    }
    ]
  },
  {
    path: 'financialManagement',
    component: () =>
                import('@/views/ctms/financialManagement'), // Parent router-view
    name: 'financialManagement',
    meta: {
      title: '财务管理' // financialManagement
    },
    children: [{
      path: 'ZeroLoadSettlement',
      component: () =>
                        import('@/views/ctms/financialManagement/ZeroLoadSettlement'), // Parent router-view
      name: 'ZeroLoadSettlement',
      meta: {
        title: '零担结算' // financialManagement
      }
    },
    {
      path: 'charteredSettlement',
      component: () =>
                        import('@/views/ctms/financialManagement/charteredSettlement'), // Parent router-view
      name: 'charteredSettlement',
      meta: {
        title: '包车结算' // charteredSettlement
      }
    },
    {
      path: 'WaybillExpense',
      component: () =>
                        import('@/views/ctms/financialManagement/WaybillExpense'), // Parent router-view
      name: 'WaybillExpense',
      meta: {
        title: '运单费用管理' // WaybillExpense
      }
    },
    {
      path: 'driverWithdrawal',
      component: () =>
                        import('@/views/ctms/financialManagement/driverWithdrawal'), // Parent router-view
      name: 'driverWithdrawal',
      meta: {
        title: '司机提现管理' // driverWithdrawal
      }
    },
    {
      path: 'driverCost',
      component: () =>
                        import('@/views/ctms/financialManagement/driverCost'), // Parent router-view
      name: 'driverCost',
      meta: {
        title: '司机费用管理' // driverCost
      }
    },
    {
      path: 'monthlySettlement',
      component: () =>
                        import('@/views/ctms/financialManagement/monthlySettlement'), // Parent router-view
      name: 'monthlySettlement',
      meta: {
        title: '月结结算' // monthlySettlement
      }
    },
    {
      path: 'separateAccountsMan',
      component: () =>
                        import('@/views/ctms/financialManagement/separateAccountsMan'), // Parent router-view
      name: 'separateAccountsMan',
      meta: {
        title: '清分管理' // separateAccountsMan
      }
    },
    {
      path: 'applicationSeparate',
      component: () =>
                        import('@/views/ctms/financialManagement/applicationSeparate'), // Parent router-view
      name: 'applicationSeparate',
      meta: {
        title: '申请清分' // applicationSeparate
      }
    }
    ]
  },
  {
    path: 'statisticalAnalysis',
    component: () =>
                import('@/views/ctms/statisticalAnalysis'), // Parent router-view
    name: 'statisticalAnalysis',
    meta: {
      title: '统计分析' // statisticalAnalysis
    },
    children: [{
      path: 'homeStatistics',
      component: () =>
                        import('@/views/ctms/statisticalAnalysis/homeStatistics'), // Parent router-view
      name: 'homeStatistics',
      meta: {
        title: '首页统计' // homeStatistics
      }
    },
    {
      path: 'dataStatistics',
      component: () =>
                        import('@/views/ctms/statisticalAnalysis/dataStatistics'), // Parent router-view
      name: 'dataStatistics',
      meta: {
        title: '平台数据统计' // dataStatistics
      }
    }
    ]
  }

  ]
}

export default ctmsRouter

/* 订单管理Order management
    订单开单 createOrder
    批量导入 bulkImport
    运单管理 waybillManagement
    回单确认 receiptConfirmation
    异常管理 exceptionManagement
    信息补录 informationSupplement
财务管理 financial management
  零担结算 ZeroLoadSettlement
  包车结算 charteredSettlement
  运单费用管理 WaybillExpense
  司机提现管理 driverWithdrawal
  司机费用管理 driverCost
  月结结算 monthlySettlement
  清分管理：separateAccountsMan
  申请清分 applicationSeparate
统计分析 statistical analysis
  首页统计 homeStatistics
  平台数据统计 dataStatistics
  */
